<?php
#OUR NAMESPACES

$wgNamespaceNames = array(
NS_SPECIAL => 'Special',
NS_TALK => 'Talk',
NS_USER => 'User',
NS_ARTIST => 'Artist',
NS_ARTIST_TALK => 'Artist_talk',
NS_SONG => 'Song',
NS_SONG_TALK => 'Song_talk',
NS_RELEASE => 'Release',
NS_RELEASE_TALK => 'Release_talk',
NS_USER_PROFILE => 'UserProfile',
NS_USER_WIKI => 'UserWiki'
);

$wgExtraNamespaces[NS_ARTIST] = "Artist";
$wgExtraNamespaces[NS_ARTIST_TALK] = "Artist_talk";
$wgExtraNamespaces[NS_SONG] = "Song";
$wgExtraNamespaces[NS_SONG_TALK] = "Song_talk";
$wgExtraNamespaces[NS_RELEASE] = "Release";
$wgExtraNamespaces[NS_RELEASE_TALK] = "Release_talk";

$wgExtraNamespaces[110] = "Custom_namespace";
$wgExtraNamespaces[111] = "Custom_namespace_talk";


#Set default searching
$wgNamespacesToBeSearchedDefault = array(
	NS_MAIN =>           false,
	NS_ARTIST =>         true, // artist namespace
	NS_SONG =>         true, // song namespace
	NS_RELEASE =>         true, // release namespace

	NS_TALK =>           false,
	NS_USER =>           false,
	NS_USER_TALK =>      false,
	NS_PROJECT =>      false,
	NS_PROJECT_TALK => false,
	NS_IMAGE =>          true,
	NS_IMAGE_TALK =>     false,
	NS_MEDIAWIKI =>      false,
	NS_MEDIAWIKI_TALK => false,
	NS_TEMPLATE =>       false,
	NS_TEMPLATE_TALK =>  false,
	NS_HELP =>           false,
	NS_HELP_TALK =>      false,
	NS_CATEGORY =>       true,
	NS_CATEGORY_TALK =>  false

);


require_once( "$IP/extensions/SoundshareWiki/SoundshareWiki.php" );

//SoundShare MainTagCloud
$wgArtistPop = 0;
require_once( "$IP/extensions/MainTagCloud.php" );

//GetFreeBaseInfo (for artist page from freebase api)
include("$IP/extensions/GetFreeBaseInfo.php");

//SoundShare ILikeThis
include("$IP/extensions/ILikeThis.php");

//SoundShare KeepSearches
require_once( "$IP/extensions/KeepSearches/KeepSearches.php");

//SoundShare Genre
require_once( "$IP/extensions/Genre.php");

//SoundShare CategoryCache
$wgCategory = -1;
include("$IP/extensions/CategoryCache.php");

//SoundShare File MP3 view
require_once( "$IP/extensions/MP3/MP3.php" );

//SoundshareSearch engine - this is the soundshare main engine - DON'T REMOVE!
require_once( "$IP/extensions/SoundshareSearch/SoundshareSearch.php" );

//UserTimeline
//include("$IP/extensions/UserTimeline/UserTimeline.php");

//UserStatus
//require_once("$IP/extensions/UserUpdateStatus/UserUpdateStatus.php");

//Main menu extensions
include("$IP/extensions/Tops/TopArtists.php");
include("$IP/extensions/Tops/TopAlbums.php");
include("$IP/extensions/Tops/TopSongs.php");
include("$IP/extensions/BrowseTags.php");


//************************************************************ HOME MODULES
include("$IP/extensions/MostActiveUsers.php");
include("$IP/extensions/MostFavorited.php");
include("$IP/extensions/LastComments.php");
include("$IP/extensions/ArtistOfTheDay.php");

include("$IP/extensions/HotFiles.php");

include("$IP/extensions/DidYouMean.php");

#enabling autosuggest on search
$wgAjaxWatch = true;
$wgUseAjax=true;


//ocultos
$wgCorrespondence[crcGenre("13")]=0;
$wgCorrespondence[crcGenre("genre")]=0;
$wgCorrespondence[crcGenre("www.RnB4U.in")]=0;
$wgCorrespondence[crcGenre("Unknown")]=0;

//Similitudes
$wgCorrespondence[crcGenre("Hip Hop/Rap")]=crcGenre("Hip-Hop");
$wgCorrespondence[crcGenre("Rap")]=crcGenre("Hip-Hop");
$wgCorrespondence[crcGenre("Rap/Hip Hop")]=crcGenre("Hip-Hop");
//$wgCorrespondence[crcGenre("Classical")]=crcGenre("Metal");   // para pruebas
